/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kundenverwaltung;

import java.util.HashMap;
import java.util.Map;

public class Kundenverwalter implements IKundenverwalter {
    Map<Integer, IKunde> kundenMap = new HashMap<>();
    private int currNr = 0;
    
    public Kundenverwalter() {}
    
    public int addKunde(String kundenname) {
        kundenMap.put(currNr, new Kunde(kundenname));
        return currNr++;
    }
    
    public IKunde getKunde(int knr) {
        return kundenMap.get(knr);
    }
}
